<div class="add">
	<form action="<?php echo url('page/add');?>" method="post" id="addForm">
		<table cellpadding="0" cellspacing="0">
			<tr height="30">
				<td class="inputtxt" align="right" width="80"><span>页面标题</span></td>
				<td align="left" class="magin">
					<input type="text" class="required" name="page[title]" value="" />
					<span style="color:red; margin-left: 6px;">*</span>
				</td>
			</tr>
			<tr height="50">
				<td class="inputtxt" align="right"><span>页面简介</span></td>
				<td align="left" class="magin"><textarea name="page[description]" cols="100" rows="4"></textarea></td>
			</tr>
			<tr>
				<td class="inputtxt" align="right"><span>页面内容</span></td>
				<td align="left" class="magin"><textarea id="ckeditor" name="page[content]"></textarea></td>
			</tr>
			<tr height="30"><td colspan="2" align="right"><input type="submit" onClick="CKupdate();" value="添加" id="catesub" /></td></tr>
		</table>
	</form>
</div>
<script type="text/javascript">
$(document).ready(function(){	
	CKEDITOR.replace('ckeditor',{
		filebrowserImageUploadUrl:"/admin.php/image/ckUpload.html",
	});
	submitForm("#addForm",{
		dataType:'json',
		success:function(data){
				if(data.i=='ok'){
					location.href="<?php echo url('page/index');?>";
				}else{
					alert(data.i);
				}
			},
	});
});
</script>
